<?php 
	session_start();
	if (!isset($_SESSION['ok']) || $_SESSION['ok'] != "yes") {
		header("Location: ./");
		exit();
	}
?>
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8" />
		<!-- 配置文件 -->
		<script type="text/javascript" src="ueditor/ueditor.config.js"></script>
		<!-- 编辑器源码文件 -->
		<script type="text/javascript" src="ueditor/ueditor.all.js"></script>
		<!-- 语言包文件(建议手动加载语言包，避免在ie下，因为加载语言失败导致编辑器加载失败) -->
		<script type="text/javascript" src="ueditor/lang/zh-cn/zh-cn.js"></script>
		<link rel="stylesheet" href="ueditor/themes/default/css/ueditor.css"/>
		
		<style>
			body{
			font-size: 15px;
 			    color:#000000;
 			    text-align:center;
 			    text-decoration:none;
 			    width: 1040px;
			}
			table {
    			border-collapse: collapse;
  			    border:solid 1px #abc;
				margin:20px auto;
				width:90%;
				text-align: center;
				float: right;
		    }
			tr {
				border-collapse: collapse;
				border:solid 1px #abc;
				height: 40px;
    		}
			th,td {
 				border-collapse: collapse;
 				border:solid 1px #abc;
  		  	}
		</style>
	</head>
	<body>
		<form action="class/sendMail.php" method="post">	
		<table border="1" style="margin:0 auto;width:100%;">
			<tr>
				<td colspan='2'>收件人：<input type="text" name="toWho" id="to_who" style="width:650px" value=""/> </td>
			</tr>
			<tr>
				<td>邮件主题：<input type="text" name="title" style="width:650px;" value=""/></td>
			</tr>
			<tr>
				<td colspan='2'style="text-align:center;">
					<div style="width: 100%; align:center;">
						<textarea id="editor_id" name="myContent" style="width:100%;height:440px;">
								
						</textarea>
					</div>
				</td>
			</tr>
			<tr>
				<td colspan='2' style="text-align:center;"><input type="submit" name="submit" onclick="return if_send()" value="发送邮件" /></td>
			</tr>	
		</table>
		</form>	

		<script type="text/javascript">
			var editor = UE.getEditor('editor_id');
		</script>

	</body>
</html>	